home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 3: Developer Tools
/
Linux Cubed Series 3 - Developer Tools.iso
/
devel
/
make
/
icmake-6.000
/
icmake-6
/
icmake
/
exec
/
cleanup.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-02-08
|
502 b
|
35 lines
/*
\funcref{cleanup}{void cleanup ()}
{}
{}
{}
{main()}
{cleanup.c}
{
This function is attached to the `at-exit' list by {\em main()}. The
functions are the following:
\begin{itemize}
\item The current working directory is set to {\em orgdir} (MSDOS
only).
\end{itemize}
}
*/
#include "icm-exec.h"
extern int
error_occurred;
void cleanup ()
{
fclose (stdout);
#ifdef MSDOS
chdir (orgdir);
#endif
}